package com.example.yupao_project.component;

import com.example.yupao_project.entity.User;
import org.springframework.stereotype.Component;

/**
 * 数据脱敏
 * @author: 杰
 * @date: 2024/5/3 16:06
 */
@Component
public class HandlingPrivacy {
    public static User handlingPrivacy(User user) {
        user.setUserPassword("");
        return user;
    }
}
